package designpattern.observe.improve;

public class Client {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();

        BaiduObserve baiduObserve = new BaiduObserve();
        weatherData.register(baiduObserve);
        TaoBaoObserve taoBaoObserve = new TaoBaoObserve();
        weatherData.register(taoBaoObserve);
        weatherData.setData(20,30,40);
        System.out.println("===========淘宝解绑=================");
        weatherData.unRegister(taoBaoObserve);
        weatherData.setData(100,30,40);

    }
}
